'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 定时任务
 * @author sundbcn@gmail.com (sun debing)
 */

var bossModel = require('../../models/bossModel');
var moment = require('moment');

module.exports = function () {
    console.log('----清除世界BOSS信息 %s -------', moment().format('HH:mm:ss'));
    bossModel.removeAll(function (err) {
        if (!!err) {
            console.error('clear boss model error:' + err);
        }
    });
};
